<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddActivityInfoTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('activity_info', function (Blueprint $table) {
            $table->integer('is_young_teachers')->nullable()->default(1)->comment('是否青年教师 1.是 0.否')->after('grade_ids_data');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('activity_info', function (Blueprint $table) {
            $table->dropColumn('is_young_teachers');
        });
    }
};
